JavaScript Debugger Modules > What is a JavaScript Debugger Module? > getStepInstrument()

 

getStepInstrument()

Availability

Dreamweaver 4.0

Description

Called for each statement that is parsed inside a block. A call is always made to StartBlock() before this function is called. Dreamweaver records each line for which it calls this function as a valid breakpoint line. While the debugger is started, all breakpoints are moved to valid breakpoint lines.

Arguments

lineNumber, offset, bisInFuncton

lineNumber is the line number of the next statement relative to the start of the block (1-based index).
offset is the offset of the first character of the next statement relative to the start of the block (0-based index).
bisInFunction is a Boolean that indicates if the step is in a function definition (true) or in the global scope (false).

Returns

A string containing the JavaScript code to insert before the statement.